let platform = ''
// #ifdef  MP-WEIXIN
platform = 'mini'
// #endif
// #ifdef  MP-ALIPAY
platform = 'ali'
// #endif
// #ifdef  MP-BAIDU
platform = 'baidu'
// #endif
// #ifdef  MP-TOUTIAO	
platform = 'toutiao'
// #endif
// #ifdef  H5
// 判断是否为公众号模拟器环境
const isWechat = () => {
	return String(navigator.userAgent.toLowerCase().match(/MicroMessenger/i)) == "micromessenger";
}
platform = isWechat() ? 'weChat' : 'h5'
// #endif
// #ifdef APP-PLUS
platform = 'apk'
// #endif
let t = 'merchant/',
	api = {
		platform,
		downloadAPK: t + 'upgraded/sjd/app.apk',
		saveUser: t + 'login/save-user',
		getMiniConfig: t + 'login/get-mini-config',
		upgradeInfo: t + 'common/upgrade-info',
		loginOut: t + 'login/login-out',
		newOrderInfo: t + 'order/new-order-info',
		config: t + 'config/config',
		strogConfig: t + 'config/store-config',
		login: t + 'login/login-in',
		loginMini: t + 'login/mini-login',
		wmddlb: t + 'order/order-list',
		ddcz: t + 'order/modify-order',
		wdymxx: t + 'index/get-merchant-row',
		ymmdxx: t + 'shop/get-store-info',
		bzzx: t + 'index/get-help-list',
		bzxq: t + 'index/get-help-detail',
		cssj: t + 'shop/get-city',
		sctp: t + 'common/upload',
		bcmdxx: t + 'shop/store-basic',
		bcmdyyxx: t + 'shop/store-business',
		bcmdzzxx: t + 'shop/store-auth',
		spfl: t + 'category/category-basic',
		splb: t + 'food/get-food-list',
		spcz: t + 'food/food-down',
		xgmdzt: t + 'shop/change-shop-status',
		slaforder: t + 'order/raise-order',
		registrationId: t + 'common/save-registration',
		spfllb: t + 'category/get-category-list',
		tjspfl: t + 'category/category-save',
		scspfl: t + 'category/category-del',
		kgspfl: t + 'category/change-switch',
		spgglb: t + 'specs/get-specs-list',
		spggkg: t + 'specs/change-specs',
		spggtj: t + 'specs/specs-save',
		spggsc: t + 'specs/specs-del',
		spsxlb: t + 'attribute/get-attr-list',
		spsxtj: t + 'attribute/attr-save',
		spsxsc: t + 'attribute/attr-del',
		spjllb: t + 'material/get-materia-list',
		spjlkg: t + 'material/change-materia',
		spjltj: t + 'material/meteria-save',
		spjlsc: t + 'material/materia-del',
		spdwlb: t + 'unit/get-unit-list',
		spdwkg: t + 'unit/change-display',
		spdwtj: t + 'unit/unit-save',
		spdwsc: t + 'unit/unit-del',
		spdybqlb: t + 'print/get-print-list',
		spdybqkg: t + 'print/change-print',
		spdybqtj: t + 'print/print-save',
		spdybqsc: t + 'print/print-del',
		spbqlb: t + 'good-label/get-label-list',
		spbqkg: t + 'good-label/change-label',
		spbqtj: t + 'good-label/label-save',
		spbqsc: t + 'good-label/label-del',
		spflsj: t + 'food/good-render',
		spbjxq: t + 'food/good-detail',
		spbc: t + 'food/goods-save',
		sjtx: t + 'shop/save-withdrawal',
		sjtxxx: t + 'shop/store-bill',
		withdrawalList: t + 'shop/withdrawal-list',
		withdrawalSet: t + 'shop/withdrawal-set',
		getUserInfo: t + 'shop/get-user-info',
		selectGood: t + 'food/select-good',
		goodsInfo: t + 'food/in-food-list',
		saveShopCar: t + 'order/save-shop-car',
		getCarList: t + 'order/get-car-list',
		delCar: t + 'order/del-car',
		ggxq: t + 'order/good-oper',
		//桌台 快餐
		tableInfo: t + 'order/order-info',
		//---------------
		getArea: t + 'order/get-area',
		//-----------------
		tableList: t + 'order/table-list',
		saveOrder: t + 'order/save-order',
		pay: t + 'order/pay ',
		getMember: t + 'order/get-member',
		delLine: t + 'order/del-line',
		instoreOrderList: t + 'order/instore-order-list',
		tableClearOrder: t + 'order/clear-order',
		tableHandleOrder: t + 'order/handle-order',
		tablePutMoney: t + 'order/put-money',
		tableArea: t + 'order/table-area',
		tableType: t + 'order/table-type',
		tableChangeList: t + 'order/change-table-list',
		tableTurn: t + 'order/turn-table',
		tableChangePeople: t + 'order/change-people',
		tableDelGoods: t + 'order/del-goods',
		modifyFastOrder: t + 'order/modify-fast-order',
		inStoreOrderInfo: t + 'order/in-store-order-info',
		payFaceList: t + 'order/cashier-order-list',
		payFaceInfo: t + 'order/cashier-order-info',
		returnCode: t + 'order/return-code',
		// 数据统计
		realProfit: t + 'shop/real-profit',
		takeOutIndex: t + 'shop/take-out-index',
		inStoreIndex: t + 'shop/in-store-index',
		takeOutIndexPay: t + 'shop/take-out-index-pay',
		inStoreIndexPay: t + 'shop/in-store-index-pay',
		statisticGetGoods: t + 'shop/get-goods',
		statisticFacePay: t + 'shop/face-pay',
		// 财务对账
		storeBillList: t + 'shop/store-bill-list',
		statementTransaction: t + 'shop/transaction',
		statementAssetOverview: t + 'shop/asset-overview',
		statementBillInfo: t + 'shop/bill-info',
		statementBillOrderInfo: t + 'shop/bill-order-info',
		currencyOrderInfo: t + 'shop/currency-order-info',
		// 评价管理
		assessCommentList:t + 'comment/comment-list',
		assessModifyComment:t + 'comment/modify-comment',
		//昵称头像
		userimg: t + 'login/save-user',
		// 充值记录
		czjl: t +'run/recharge',
		// 订单列表
		ddlb: t + 'run/run-order'
		
		
	};
export default api
